package com.itfreer.cms.entity.content;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import com.itfreer.form.dictionary.reflect.DictionaryField;
import com.itfreer.form.dictionary.reflect.DictionaryListField;

/**
 * 定义文章管理实体类
 */
public class DocumentEntity implements Serializable {
	
	private static final long serialVersionUID = -3113990430827435245L;
	
	/**
	 * id值，主键，唯一值
	 * 系统应用中必需关联此值
	 */
	private String id;
	
	/**
	 * 站点名称
	 */
	@DictionaryField(dictionaryName = "cms_site", toFieldName = "siteName")
	private String siteId;

	/**
	 * 站点名称
	 */
	private String siteName;
	
	/**
	 * 原始ID，用于记录从不同站点之间提交文章
	 */
	private String originalid;
	
	/**
	 * 所属专题
	 */
	@DictionaryField(dictionaryName = "cms_subject", toFieldName = "subjectName")
	private String subject;
	
	private String subjectName;
	
	/**
	 * 所属栏目
	 */
	@DictionaryField(dictionaryName = "cms_column", toFieldName = "columnName")
	private String column;
	
	private String columnName;
	
	/**
	 * 标题
	 */
	private String title;
	
	/**
	 * 完整标题
	 */
	private String fullTitle;
	
	/**
	 * 标题图
	 */
	private String titlePicture;

	/**
	 * 关键词
	 */
	private String main;
	
	/**
	 * 发布人
	 */
	private String release;
	
	/**
	 * 发布时间
	 */
	private Date publishDate;

	/**
	 * 作者
	 */
	private String author;
	
	/**
	 * 来源
	 */
	private String source;

	/**
	 * 描述
	 */
	private String describe;
	
	/**
	 * 状态
	 */
	@DictionaryField(dictionaryName = "cms_document_static", toFieldName = "stateName")
	private String state;
	
	/**
	 * 状态名称
	 */
	private String stateName;

	// ---- 新闻内容    -----
	/**
	 * 新闻正文
	 */
	private String text;
	// ---- 新闻内容 end -----
	
	// ---- 图集内容    -----
	/**
	 * 图集
	 */
	private String images;
	// ---- 图集内容 end -----
	
	// ---- 下载内容    -----
	/**
	 * 下载文件
	 */
	private String file;
	
	/**
	 * 文件大小
	 */
	private Long size;

	/**
	 * 授权方式
	 */
	@DictionaryField(dictionaryName = "cms_document_license", toFieldName = "licenseName")
	private String license;
	
	private String licenseName;

	/**
	 * 界面语言
	 */
	@DictionaryField(dictionaryName = "cms_document_language", toFieldName = "languageName")
	private String language;
	
	private String languageName;

	/**
	 * 推荐星级
	 */
	private Integer star;

	/**
	 * 运行环境
	 */
	@DictionaryField(dictionaryName = "cms_document_system", toFieldName = "systemName")
	private String system;
	
	private String systemName;
	// ---- 下载内容 end -----
	
	
	// ---- 视频内容    -----
	/**
	 * 视频集
	 */
	private String videos;
	// ---- 视频内容 end -----
	
	
	// ---- 产品内容    -----
	/**
	 * 产品图片集
	 */
	private String products;
	/**
	 * 市场价
	 */
	private Double market;
	/**
	 * 优惠价
	 */
	private Double discount;
	/**
	 * 商品是否有货
	 */
	private Boolean stock;
	// ---- 产品内容 end -----
	
	
	// ---- 文库内容    -----
	/**
	 * 文库PDF
	 */
	private String pdf;
	// ---- 文库内容 end -----
	
	
	// ---- 招聘内容    -----
	/**
	 * 公司名称
	 */
	private String company;

	/**
	 * 部门名称
	 */
	private String department;

	/**
	 * 招聘人数
	 */
	private Integer number;

	/**
	 * 薪酬待遇
	 */
	private String salary;

	/**
	 * 工作经验
	 */
	private String undergo;

	/**
	 * 最低学历
	 */
	private String education;

	/**
	 * 工作地点
	 */
	private String workingPlace;

	/**
	 * 工作性质
	 */
	@DictionaryField(dictionaryName = "cms_nature_work", toFieldName = "workNatureName")
	private String workNature;
	
	/**
	 * 工作性质
	 */
	private String workNatureName;

	/**
	 * 岗位职责
	 */
	private String duty;

	/**
	 * 岗位要求
	 */
	private String claim;
	// ---- 招聘内容 end -----
	
	// ------子表对象   start---
	/**
	 * 子表对象   评论管理
	 */
	@DictionaryListField
	private Set<CommentEntity> comment;
	
	/**
	 * 子表对象   评论管理
	 */
	public Set<CommentEntity> getComment() {
		return comment;
	}

	/**
	 * 子表对象   评论管理
	 */
	public void setComment(Set<CommentEntity> comment) {
		this.comment = comment;
	}
	
	
	
	//  -----子表对象 end---
	
	
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getSiteId() {
		return siteId;
	}

	public void setSiteId(String siteId) {
		this.siteId = siteId;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public String getOriginalid() {
		return originalid;
	}

	public void setOriginalid(String originalid) {
		this.originalid = originalid;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFullTitle() {
		return fullTitle;
	}

	public void setFullTitle(String fullTitle) {
		this.fullTitle = fullTitle;
	}

	public String getTitlePicture() {
		return titlePicture;
	}

	public void setTitlePicture(String titlePicture) {
		this.titlePicture = titlePicture;
	}

	public String getMain() {
		return main;
	}

	public void setMain(String main) {
		this.main = main;
	}

	public String getRelease() {
		return release;
	}

	public void setRelease(String release) {
		this.release = release;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	public String getFile() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public Long getSize() {
		return size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public String getSystem() {
		return system;
	}

	public void setSystem(String system) {
		this.system = system;
	}

	public String getVideos() {
		return videos;
	}

	public void setVideos(String videos) {
		this.videos = videos;
	}

	public String getProducts() {
		return products;
	}

	public void setProducts(String products) {
		this.products = products;
	}

	public Double getMarket() {
		return market;
	}

	public void setMarket(Double market) {
		this.market = market;
	}

	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Boolean getStock() {
		return stock;
	}

	public void setStock(Boolean stock) {
		this.stock = stock;
	}

	public String getPdf() {
		return pdf;
	}

	public void setPdf(String pdf) {
		this.pdf = pdf;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}

	public String getUndergo() {
		return undergo;
	}

	public void setUndergo(String undergo) {
		this.undergo = undergo;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getWorkingPlace() {
		return workingPlace;
	}

	public void setWorkingPlace(String workingPlace) {
		this.workingPlace = workingPlace;
	}

	public String getWorkNature() {
		return workNature;
	}

	public void setWorkNature(String workNature) {
		this.workNature = workNature;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getClaim() {
		return claim;
	}

	public void setClaim(String claim) {
		this.claim = claim;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public void setSubjectName(String subjectName) {
		this.subjectName = subjectName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getLicenseName() {
		return licenseName;
	}

	public void setLicenseName(String licenseName) {
		this.licenseName = licenseName;
	}

	public String getLanguageName() {
		return languageName;
	}

	public void setLanguageName(String languageName) {
		this.languageName = languageName;
	}

	public String getSystemName() {
		return systemName;
	}

	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}

	public String getWorkNatureName() {
		return workNatureName;
	}

	public void setWorkNatureName(String workNatureName) {
		this.workNatureName = workNatureName;
	}
	
}
